import org.w3c.dom.ls.LSOutput;
import java.util.Scanner;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-${ MONTH }-07
 * Time: 20:45
 */
public class Test {
    public static void main1(String[] args) {
        int a=10;
        if(a%2==0){
            System.out.println("偶数");
        }else{
            System.out.println("奇数");
        }
    }

    public static void main12(String[] args) {
        int year=2000;
        if((year%100==0 && year%4==0) || year%400==0 ){
            System.out.println("闰年");
        }else{
            System.out.println("不是闰年");
        }
    }

    public static void main11(String[] args){
        int n=5;
        int sum=0;
        while(n>0){
            int b=1;
            int mul=1;
            while(b<=n){
                mul*=b;
                b++;
            }
            n--;
            sum+=mul;
        }
        System.out.println(sum);
    }

    public static void main44(String[] args) {
       int j=1;
       int sum=0;
        while(j<=5){
            int a=1;
            int ret=1;
            while(a<=j) {
                ret *= a;
                a++;
            }
            j++;
            sum += ret;
        }
        System.out.println(sum);
    }

    public static void main55(String[] args) {
        int sum=0;
        for (int j = 1; j <= 5; j++) {
            int ret=1;
            for (int i = 1; i <= j; i++) {
                ret *= i;
            }
            sum += ret;
        }
        System.out.println(sum);
    }

    public static void main(String[] args) {
        System.out.println("输出并且换行");
        System.out.print("输出但是不换行");
        System.out.printf("%d",5);
        Scanner scanner=new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println(n);
        Scanner scanner1 = new Scanner(System.in);
        float f= scanner.nextFloat();
        System.out.println(f);
    }
}
